export const getTransferOption = (self) => {
  return {
    calcHeight: 30,
    tip: false,
    rowKey: 'partNo',
    searchShow: true,
    searchMenuPosition: 'right',
    reserveSelection: true,
    height: '400px',
    searchLabelWidth: 100,
    dialogClickModal: false,
    border: true,
    columnBtn: false,
    viewBtn: false,
    addBtn: false,
    selection: true,
    printBtn: false,
    editBtn: false,
    delBtn: false,
    index: false,
    menu: false,
    refreshBtn: false,
    // selectable: (row, index) => {
    //   return !self.rightData.map((i) => i.id).includes(row.id);
    // },
    column: [
      {
        label: '物料编码',
        prop: 'partNo',
        searchSpan: 6,
        search: true
      },
      {
        label: '物料名称',
        prop: 'name',
        searchSpan: 6,
        search: true
      },
      {
        label: '物料类别',
        prop: 'categoryName'
      },
      {
        label: '物料规格',
        prop: 'partModel'
      }
    ]
  };
};

export const transferRightOption = {
  calcHeight: 30,
  tip: false,
  rowKey: 'id',
  searchShow: true,
  searchMenuPosition: 'right',
  reserveSelection: true,
  height: '400px',
  searchLabelWidth: 100,
  dialogClickModal: false,
  border: true,
  columnBtn: false,
  viewBtn: false,
  addBtn: false,
  selection: true,
  printBtn: false,
  editBtn: false,
  delBtn: false,
  index: false,
  menu: false,
  refreshBtn: false,
  column: [
    {
      label: '物料编码',
      prop: 'partNo',
      searchSpan: 6,
      search: true
    },
    {
      label: '物料名称',
      prop: 'name',
      searchSpan: 6,
      search: true
    },
    {
      label: '物料类别',
      prop: 'categoryName'
    },
    {
      label: '物料规格',
      prop: 'partModel'
    }
  ]
};

export const detailOption = {
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuPosition: 'right',
  height: '400px',
  searchLabelWidth: 100,
  dialogClickModal: false,
  border: true,
  columnBtn: false,
  viewBtn: false,
  addBtn: false,
  selection: false,
  printBtn: false,
  editBtn: false,
  delBtn: false,
  index: false,
  menu: false,
  refreshBtn: false,
  // viewText: '详情',
  menuWidth: 100,
  column: [
    {
      label: '编码',
      prop: 'toolCode',
      searchSpan: 6
    },
    {
      label: '工单号',
      prop: 'workOrderNo',
      searchSpan: 6
    },
    {
      label: '产品编码',
      prop: 'partNo'
    },
    {
      label: '领用人',
      prop: 'requestByName'
    },
    {
      label: '领用时间',
      prop: 'requestDate'
    },
    {
      label: '采集时间',
      prop: 'onlineDate'
    },
    {
      label: '采集人',
      prop: 'onlineByName'
    },
    {
      label: '归还人',
      prop: 'returnByName'
    },
    {
      label: '归还时间',
      prop: 'returnDate'
    }
  ]
};
